package cn.gok.springboot.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * @author 陈少华
 * @create 2022-07-14 15:09
 **/

@Component
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User { //实体：用户类
    private int age;
    private String name;
    private String password;

    public int getAge() {
        return age;
    }

    public User(int age, String name, String password) {
        this.age = age;
        this.name = name;
        this.password = password;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
